import Mock from 'mockjs'
import book from './book.json'
Mock.mock('/mock/getBooks','get',{//mock()方法对需要模拟的数据进行封装
    code:200,//请求成功的状态码
    data:book //模拟的请求数据
})